package com.ucw.ucwclient.dal.mapper;

import java.util.Date;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.ucw.ucwclient.dal.dataobject.Token;


@Repository
public interface TokenMapper {
	int deleteByPrimaryKey(Long userId);

	int insert(Token record);

	int insertSelective(Token record);

	Token selectByPrimaryKey(Long userId);

	int updateByPrimaryKeySelective(Token record);

	int updateByPrimaryKey(Token record);

	Token selectByToken(@Param("token") String token, @Param("date") Date date);
}